<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/product/productUpdate}" method="post">
    <input type="hidden" name="id" th:value="${product.id}">
    姓名：<input type="text" name="name" th:value="${product.name}"/><br/>
    价格：<input type="text" name="jg" th:value="${product.jg}"/><br/>
    日期：<input type="date" name="birthday" th:value="${#dates.format(product.birthday,'yyyy-MM-dd')}"/><br/>
    状态：<input type="text" name="status" th:value="${product.status}"><br/>
    权限：<select name="roid" th:field="${product.roid}">
    <option th:selected="${product.domeid==0}" th:value="0">普通</option>
    <option th:selected="${product.domeid==1}" th:value="1">高级</option>
    <option th:selected="${product.domeid==2}" th:value="2">超级</option>
</select><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>
